package org.zn.mvcbase.response;

import java.io.Serializable;
import java.util.Map;

import org.zn.mvcbase.entity.BaseEntity;
import org.zn.mvcbase.page.PaginationUtility;
import org.zn.mvcbase.validate.ValidatedResult;

/**
 * @ProjectName:91isoft_oa
 * @Description: 
 * @Copyright: Copyright (c) 2016

 * @author: 周楠
 * @date 2016年3月16日 上午9:44:41
 */

public  class Metadata implements Serializable{

	private static final long serialVersionUID = -1373110965908399024L;
	
	
	public Metadata() {
		// TODO Auto-generated constructor stub
	}
	
	public Metadata(String state,
			PaginationUtility<? extends BaseEntity> page,
			ValidatedResult validresult, Map<String, Object> dataMap,
			Object detailObject) {
		super();
		this.state = state;
		this.page = page;
		this.validresult = validresult;
		this.dataMap = dataMap;
		this.detailObject = detailObject;
	}

	/**
	 * 状态信息
	 */
	private String state;
	/**
	 * 分页信息
	 */
	private PaginationUtility<? extends BaseEntity> page;
	
	/**
	 * 验证信息
	 */
	private ValidatedResult  validresult;
	
	/**
	 * 自定义数据 map
	 */
	private Map<String, Object> dataMap;
	
	/**
	 * 通用单一相应对象
	 */
	private Object detailObject;

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public PaginationUtility<? extends BaseEntity> getPage() {
		return page;
	}

	public void setPage(PaginationUtility<? extends BaseEntity> page) {
		this.page = page;
	}

	public Map<String, Object> getDataMap() {
		return dataMap;
	}

	public void setDataMap(Map<String, Object> dataMap) {
		this.dataMap = dataMap;
	}

	public Object getDetailObject() {
		return detailObject;
	}

	public void setDetailObject(Object detailObject) {
		this.detailObject = detailObject;
	}

	public ValidatedResult getValidresult() {
		return validresult;
	}

	public void setValidresult(ValidatedResult validresult) {
		this.validresult = validresult;
	}

	

	
}
